package ab.mes.service.impl;

import ab.mes.entity.OrderCheck;
import ab.mes.mapper.OrderCheckMapper;
import ab.mes.service.OrderCheckService;
import ab.mes.tools.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderCheckServiceImpl implements OrderCheckService {
    @Autowired
    private OrderCheckMapper orderCheckMapper;

    //查詢所有訂單首檢項
    public Result selectOrderCheck(){
        Result result = new Result();
        result.getMap().put("order_check",orderCheckMapper.selectOrderCheck());
        return result;
    }
    //根據生產序號、產品貨號查詢訂單首檢項
    public Result selectByNum(String num){
        Result result = new Result();
        result.getMap().put("order_check",orderCheckMapper.selectByNum(num));
        return result;
    }
}
